package rsj.api.org.importdata.entity;

import com.alibaba.fastjson.annotation.JSONField;
import lombok.Data;
import common.entity.PageInfo;

import javax.validation.Valid;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.time.LocalDateTime;

/**
 * 导入失败列表参数
 *
 * @author yuanqinglong
 * @since 2021/3/9 16:49
 */
@Data
public class ImportFailedParam {


    /**
     * 导入时间
     */
    private LocalDateTime importTime;
    /**
     * 前端传的的导入时间戳
     */
    //@NotNull(message = "导入时间不可为空")
    private Long importTimestamp;
    /**
     * 机构id
     */
    @NotBlank(message = "机构id不可为空")
    private String orgId;
    /**
     * 分页参数
     */
    @Valid
    @NotNull(message = "分页信息不可为空")
    @JSONField(name = "_page_")
    private PageInfo pageInfo;
}
